﻿using System.Collections;
using System.Collections.Generic;
using BearUtil.Hidden;
using Sirenix.OdinInspector;
using UnityEngine;
namespace BearUtil
{
	[CreateNodeMenu("自定义节点/音效节点"), Title("音效节点")]
	public class AudioNode : BearNode
	{
		[LabelText("节点类型"), HideInInspector]
		public int type = 20;
		[HideLabel, ValueDropdown("GetAudioClip", DropdownWidth = 300), OnValueChanged("SetValue")]
		public AudioClip audio;
		[LabelText("音频名称"), HideInInspector]
		public string voice;
		public void SetValue(AudioClip clip) => voice = clip.name;
		public List<AudioClip> GetAudioClip() { return AudioCtrl.Instance.Clips;}
		[LabelText("延迟时间_单位毫秒")]
		public int delay_time;
	}
}
